You can back up your IIS configuration so that it is easy to return to a previous state. The steps to restore a configuration differ depending upon whether you removed and reinstalled IIS.
To back up your IIS configuration
- In the IIS snap-in on the local computer, select the Computer icon under Internet Information Services.
- Click the Action button and select Backup/Restore Configuration.
- Click the Create backup button, choose a name for your backup file, and click OK. By default, the backup file will be stored in the \Winnt\system32\inetsrv\MetaBack directory.
- Click Close.
Important
- This backup method will provide a way to restore only your IIS settings, not your content files.
- This backup method will not work if you re-install your operating system.
- Backup files cannot be used to restore an IIS configuration on other computers running Windows 2000.
Note You can back up IIS by using the browser-based Internet Services Manager (HTML), but you must use the IIS snap-in to restore your configuration.
To restore your IIS configuration
- In the IIS snap-in on the local computer, select the Computer icon under Internet Information Services.
- Click the Action button and select Backup/Restore Configuration.
- Select a backup file and click the Restore button. When asked whether to restore your configuration settings, click Yes.
To restore your IIS configuration after removing and re-installing IIS
- In the IIS snap-in on the local computer, select the Computer icon under Internet Information Services.
- Click the Action button and select Backup/Restore Configuration.
- In the Configuration Backup Name dialog box, select the backup file you created, and click the Restore button. Although an error message states that the restoration has failed, a portion of your backed-up configuration will be restored.
- At a command prompt, type cscript.exe X:\InetPub\AmdinScripts\Adsutil.vbs enum w3svc, where X is the drive letter where IIS is installed. From the settings listed, find the WamUserName and the associated WAMUserPass value.
Note To use the Adsutil.vbs utility you must have Windows Script Host installed.
- Click Start, point to Settings, click Control Panel, double-click Administrative Tools, then double-click Computer Management.
- Choose Local User Managers, and click Users. Double-click the IWAM_computername user account. Type the WAMUserPass value retrieved from the previous step and click OK.
- In the Configuration Backup Name dialog box, select the backup file you created, and then click Restore. Your configuration will now be fully restored.
Note If you changed the identity of your out-of-process applications, those applications will revert back to the previous IWAM user name.
Related Topics
- For more information on removing and re-installing IIS, see
Installing IIS.
- For more information on backing up your content files, see the Windows documentation by clicking Help on the Start menu.
© 1997-1999 Microsoft Corporation. All rights reserved.